﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UVM_Pretira_Facade;
using Entidades;
using UVM_Utileria;

namespace Utilapp
{
    class Program
    {
        static void Main(string[] args)
        {
            
            //string enc = string.Empty;

            //enc = Utilerias.Encriptar("a");
            //enc = Utilerias.Encriptar("Data Source=UvmPretiras.db.11482977.hostedresource.com;Initial Catalog=UvmPretiras;Persist Security Info=True;User ID=UvmPretiras;Password=Pr3tir4520!3");

            //ki8Q6TCRKm3SMn5tPNKw6rzGM0Pl/7TGlvkZdHXB75j8d2rHvjMIQq+2zNBEbhbHyracuVyJ7XyceHa3RcKZh9UiFXbBgz8+noT3javqkEuCN/FKNcP1PyO77Zj7oVvhyaI1D8dHq5scdyvmWuMjrpQM2LaYM8Xct5PfxLk01Omxw/JhCLYPEDAQ210K8Icm/FUf0E96/8cJxGpftyYMBw==


            LoggingFac fac = new LoggingFac();
            ////List<Usuario> lstus = fac.GetTransformacionUsuario();
            
            


            ////foreach (var item in lstus)
            ////{
            ////    item.Password = Utilerias.Encriptar(item.Password);
            ////    fac.UpdateInsertUsuario(item);
            ////}

            Usuario usr = new Usuario()
            {
                Email = "",
                Habilitado = true,
                Password = Utilerias.Encriptar("123456789"),
                PLAN = "INGENIERÍA",
                UserName = "mmedellin",
                Role = new Role() { ID = 2 },
                Nombre = "Manuel Medellin"
            };
            fac.UpdateInsertUsuario(usr);
            
            

        }
    }
}
